package com.funmi.lizip.entity.dto.task;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.funmi.lizip.utils.ObjectJsonHandler;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author itheima
 */
@Data
@ApiModel(value = "TaskAddRequest", description = "任务新增")
@TableName(value = "task",autoResultMap = true)
public class TaskAddRequest implements Serializable {
//
//    private static final long serialVersionUID = 1L;
//
//    @TableId(value = "id", type = IdType.AUTO)
//    private Integer id;

    @ApiModelProperty(value = "任务名称")
    @TableField("task_name")
    private String taskName;

    @ApiModelProperty(value = "任务描述")
    @TableField("task_description")
    private String taskDescription;

    @ApiModelProperty(value = "任务表状态")
    @TableField("task_status")
    private String taskStatus;

    @ApiModelProperty(value = "选项(多个)")
    @TableField(value = "map_options",typeHandler = ObjectJsonHandler.class)
    private JSONObject mapOptions;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_at",select = false)
    private LocalDateTime createAt;

    @ApiModelProperty(value = "是否删除")
    @TableField(value = "is_delete",select = false)
    private Boolean isDelete;


}
